package com.tansuo365.test1.service.otherservice;

import com.tansuo365.test1.bean.kucunbean.DaohuoDetails;
import com.tansuo365.test1.bean.kucunbean.DaohuoZong;
import com.tansuo365.test1.bean.otherbean.ShengouDetails;
import com.tansuo365.test1.bean.otherbean.ShengouZhixing;
import com.tansuo365.test1.bean.otherbean.ShengouZong;

import java.util.List;

public interface ShengouZhixingService {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(ShengouZhixing shengouZhixing);

    int saveDaohuoBindShengou(List<DaohuoDetails> daohuoDetailsList, DaohuoZong daohuoZong);

    //删除到货绑定申购, 在(到货查询中)删除到货单主表后
    int deleteDaohuoBindShengou(Integer[] ids)throws Exception;

    int saveShengouToZhixing(List<ShengouDetails> shengouDetailsList,ShengouZong shengouZong);

    ShengouZhixing selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShengouZhixing shengouZhixing);

//    List<ShengouZhixing> listDaohuoDetailsByZongId(Integer zongzhangid);

    List<ShengouZhixing> listShengouZhixingSelective(ShengouZhixing shengouZhixing);

//    int deleteByPrimaryKey(Integer id);

//    int deleteByZongId(Integer zongzhangid);

    //根据申购单总表id,删除申购单下对应的详细申购物料元组
    int deleteByIdArr(Integer[] ids);

    int deleteByShengoudanhao(List<String> duiyingshengoudans);
}
